package com.shantoo.android.rongcloud.master.ui;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.text.TextUtils;

import com.shantoo.android.rongcloud.master.R;

/**
 * 作者: CoolTone
 * 描述: 聊天页面
 */
public class ConversationActivity extends FragmentActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_conversation);

        String sId = getIntent().getData().getQueryParameter("targetId");   // targetId:单聊即对方ID，群聊即群组ID
        String sName = getIntent().getData().getQueryParameter("title");    // 获取昵称

        if (!TextUtils.isEmpty(sName)) {
            //mName.setText(sName);
        } else {
            // sId
            // TODO 拿到id 去请求自己服务端
        }
    }
}
